
package TestTypeConvert;

public class TestTypeConvert {
    public static void main(String[] args) {
        //自动类型转换
        int a=324;
        long b=a;
        double d=b;
        float e=1231f;
        //特例
        byte b2=123;

        //强制类型转换
        char f='a';
        int g=f+1;
        System.out.println(g);
        System.out.println((char)g);

    }
}
